{$IFDEF VER80}
  {$DEFINE IDE_D1_UP}
{$ENDIF}
{$IFDEF VER90}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
{$ENDIF}
{$IFDEF VER100}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
{$ENDIF}
{$IFDEF VER120}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
{$ENDIF}
{$IFDEF VER130}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
{$ENDIF}
{$IFDEF VER140}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
  {$DEFINE IDE_D6_UP}
{$ENDIF}
{$IFDEF VER150}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
  {$DEFINE IDE_D6_UP}
  {$DEFINE IDE_D7_UP}
{$ENDIF}
{$IFDEF VER160}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
  {$DEFINE IDE_D6_UP}
  {$DEFINE IDE_D7_UP}
  {$DEFINE IDE_D8_UP}
{$ENDIF}
{$IFDEF VER170}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
  {$DEFINE IDE_D6_UP}
  {$DEFINE IDE_D7_UP}
  {$DEFINE IDE_D8_UP}
  {$DEFINE IDE_D2005_UP}
{$ENDIF}
{$IFDEF VER180}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
  {$DEFINE IDE_D6_UP}
  {$DEFINE IDE_D7_UP}
  {$DEFINE IDE_D8_UP}
  {$DEFINE IDE_D2005_UP}
  {$DEFINE IDE_D2006_UP}
{$ENDIF}
{$IFDEF VER185}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
  {$DEFINE IDE_D6_UP}
  {$DEFINE IDE_D7_UP}
  {$DEFINE IDE_D8_UP}
  {$DEFINE IDE_D2005_UP}
  {$DEFINE IDE_D2006_UP}
  {$DEFINE IDE_D2007_UP}
{$ENDIF}
{$IFDEF VER200}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
  {$DEFINE IDE_D6_UP}
  {$DEFINE IDE_D7_UP}
  {$DEFINE IDE_D8_UP}
  {$DEFINE IDE_D2005_UP}
  {$DEFINE IDE_D2006_UP}
  {$DEFINE IDE_D2007_UP}
  {$DEFINE IDE_D2009_UP}
{$ENDIF}
{$IFDEF VER210}
  {$DEFINE IDE_D1_UP}
  {$DEFINE IDE_D2_UP}
  {$DEFINE IDE_D3_UP}
  {$DEFINE IDE_D4_UP}
  {$DEFINE IDE_D5_UP}
  {$DEFINE IDE_D6_UP}
  {$DEFINE IDE_D7_UP}
  {$DEFINE IDE_D8_UP}
  {$DEFINE IDE_D2005_UP}
  {$DEFINE IDE_D2006_UP}
  {$DEFINE IDE_D2007_UP}
  {$DEFINE IDE_D2009_UP}
  {$DEFINE IDE_D2010_UP}
{$ENDIF}

{$DEFINE G2_WRITE_LOG}
{$DEFINE SELF_EXCEPTION_HANDLER}
{.$DEFINE G2_USE_INLINE}
{.$DEFINE DETAILED_LOG}
{.$DEFINE G2_USE_AVI}